<template>
  <gd-map
    :type="type"
    :disabled="disabled"
    :mapPointParent="value"
    @choosePoint="choosePoint"
  ></gd-map>
</template>
<script>
  /**
   *
   * classification  point 点  area  绘制区域   fence 电子围栏
   */
  import gdMap from './gdMap';

  export default {
    components: { gdMap },
    props: {
      value: {
        type: String,
        required: false
      },
      type: {
        type: Number,
        required: false
      },
      disabled: {
        type: Boolean,
        default: false,
      }
    },
    methods: {
      // 子modal回调
      choosePoint(value) {
        this.$emit('change', value)
      }
    },
    model: {
      prop: 'value',
      event: 'change'
    }
  }
</script>

<style scoped>
</style>
